package com.example.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot.entity.CheckException;
import com.example.springboot.entity.CheckRoom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface CheckExceptionMapper extends BaseMapper<CheckException> {
    @Select("  select * from CheckException where 1=1   LIKE CONCAT('%',#{search},'%')  ")
    List<CheckException> findsql(String search, Integer pageNum, Integer pageSize);

    @Update("update checkexception set status=1 where id=#{id}")
    int updateStatu(Integer id);

}
